//
//  HomeBannerOneCollectionViewCell.m
//  MJApp
//
//  Created by wangliang on 15/3/16.
//  Copyright (c) 2015年 wangliang. All rights reserved.
//

#import "HomeBannerOneCollectionViewCell.h"

#import "HomeBannerView.h"


@interface HomeBannerOneCollectionViewCell ()

@property(nonatomic,strong)HomeBannerView *homeBannerView;

@end

@implementation HomeBannerOneCollectionViewCell

- (instancetype)init {
    
    if (self = [super init]) {
     
        [self UI];
    }
    return self;
}

- (void)layoutSubviews {
    
    [self UI];
}

- (void)UI {
    
   
}

- (void)awakeFromNib {
    // Initialization code
    
}

- (void)setInfoArr:(NSArray *)infoArr {
    
    _infoArr = infoArr;
    if (self.homeBannerView == nil) {
        
        self.homeBannerView = [[HomeBannerView alloc] initWithFrame:self.bounds];
        self.homeBannerView.imageS = infoArr;
        self.homeBannerView.currIndex = 0;
        self.homeBannerView.pageState = PageControlStateNone;
        [self addSubview:self.homeBannerView];
    }
}

@end
